Skip to content

Instantly share code, notes, and snippets.

@cmf028
cmf028 / aabb_transform.comp
Last active April 15, 2026 23:04
Optimized matrix transforms of an AABB to an AABB
// The MIT License (MIT)
// Copyright (c) 2018 cmf028
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH
@AnnoyingTechnology
AnnoyingTechnology / build-coral-tpu.sh
Created November 23, 2025 12:41
build-coral-tpu-drivers-for-proxmox-ve-9.sh
#!/bin/bash
#
# Build Coral TPU kernel module in a throwaway LXC and install it on the host
# WITHOUT DKMS or build deps on the host.
#
set -e
CTID=999
STORAGE_PATH_BASE="/local-vms"

LLM Wiki

A pattern for building personal knowledge bases using LLMs.

This is an idea file, it is designed to be copy pasted to your own LLM Agent (e.g. OpenAI Codex, Claude Code, OpenCode / Pi, or etc.). Its goal is to communicate the high level idea, but your agent will build out the specifics in collaboration with you.

The core idea

Most people's experience with LLMs and documents looks like RAG: you upload a collection of files, the LLM retrieves relevant chunks at query time, and generates an answer. This works, but the LLM is rediscovering knowledge from scratch on every question. There's no accumulation. Ask a subtle question that requires synthesizing five documents, and the LLM has to find and piece together the relevant fragments every time. Nothing is built up. NotebookLM, ChatGPT file uploads, and most RAG systems work this way.

@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active April 15, 2026 22:57
April 2026 TLDR setup for Ollama + Gemma 4 12B on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR Setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon)

Prerequisites

  • Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
  • At least 16GB unified memory for Gemma 4 (default 8B)
  • macOS with Homebrew installed

Manage Multiple Claude Code Accounts

Run two Claude Code accounts simultaneously on macOS without re-authenticating by using separate configuration directories.

Steps

  1. Create Separate Config Directories
    mkdir ~/.claude-account1
    mkdir ~/.claude-account2
@GoXLd
GoXLd / patch-openai-chatgpt-extension-arm64.sh
Last active April 15, 2026 22:50
Patch Script: OpenAI ChatGPT VS Code extension (macOS Apple Silicon)
#!/usr/bin/env bash
set -euo pipefail
# -----------------------------------------------------------------------------
# Patch Script: OpenAI ChatGPT VS Code extension (macOS Apple Silicon)
# Author: GoXLd (https://github.com/GoXLd)
# Please retain attribution when reusing this code.
# License/Disclaimer: Provided "as is", without any warranties or guarantees
# of any kind (express or implied). Use at your own risk.
# -----------------------------------------------------------------------------